//自定义模板
Vue.component('myview',{
    props:["mvnames"], //配置自定义模板中用到的变量
    template:`
    <div>
        <ul>
            <li v-for="name in mvnames" v-text="name"></li>
        </ul>
    </div>
    `
})



let vm = new Vue({
    el:"#v",
    data:{
        names:["刘备","关羽","张飞"]
    }
})